import {defineStore} from "pinia";

export const roleStore = defineStore('roleStore',()=>{
    const role:Ref<string>=ref('')
    function getRole():string {
        return role.value
    }
    function setRole(value:string):void{
        role.value = value;
    }
    return {setRole,getRole,role}
},{
    persist:{
        storage:piniaPluginPersistedstate.localStorage()
    }
})